﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PBKVideo
{
    [XmlRoot("rsp")]
    public class VeohVideo
    {
        [XmlAttribute("stat")]
        public string Status
        {
            get;
            set;
        }
        [XmlElement("videoList")]
        public VeohVideoList VideoList
        {
            get;
            set;
        }
    }

    public class VeohVideoList
    {
        [XmlAttribute("items")]
        public int Total
        {
            get;
            set;
        }

        [XmlAttribute("numItems")]
        public int PerPage
        {
            get;
            set;
        }

        [XmlElement("video")]
        public List<VideoVeoh> Videos
        {
            get;
            set;
        }
    }

    public class VideoVeoh
    {
        [XmlAttribute("permalinkId")]
        public string PermalinkID
        {
            get;
            set;
        }
        [XmlAttribute("medResImage")]
        public string Thumb
        {
            get;
            set;
        }
        [XmlAttribute("username")]
        public string Uploader
        {
            get;
            set;
        }
        [XmlAttribute("description")]
        public string Description
        {
            get;
            set;
        }
        [XmlAttribute("title")]
        public string Title
        {
            get;
            set;
        }
    }
}
